﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompany.MyProject.Model.DTO;

/// <summary>
/// TokenModel
/// </summary>
public class TokenInfoViewModel
{
    /// <summary>
    /// 是否成功
    /// </summary>
    public bool success { get; set; }
    /// <summary>
    /// token
    /// </summary>
    public string? token { get; set; }
    /// <summary>
    /// 过期时间
    /// </summary>
    public double expires_in { get; set; }
    /// <summary>
    /// token类型
    /// </summary>
    public string? token_type { get; set; }
    /// <summary>
    /// 刷新token时间
    /// </summary>
    public  double refreshTime { get; set; }
}

/// <summary>
/// TokenResponse
/// </summary>
public class TokenResponse
{
    /// <summary>
    /// 访问令牌
    /// </summary>
    public string AccessToken { get; set; }
    /// <summary>
    /// 刷新token
    /// </summary>
    public string RefreshToken { get; set; }
    /// <summary>
    /// token过期时间
    /// </summary>
    public DateTime AccessTokenExpiry { get; set; }
}
